import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;

//3:输入一个文件名，输出他的文本内容
public class Work {
    public static void main(String[] args) {
        System.out.println("请输入一个文件名：");
        Scanner in = new Scanner(System.in);
        BufferedReader br = null;
        try {
            br = new BufferedReader(new FileReader(in.next()));
            String str;
            while ((str = br.readLine()) != null) {
                br.readLine();
                System.out.println(str);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
